package org.yefei.homeworkday12;

public class Swan {
	// 4：设计天鹅类，（自己琢磨有哪些属性），并测试。
	public String color;
	public double weight;
	public char sex;

	public Swan(String c) {
		color = c;
	}

	public Swan(String c, double w, char s) {
		color = c;
		weight = w;
		sex = s;
	}
	public void show() {
		System.out.println("这是一只" + color + "的" + sex + "天鹅，重量是" + weight + "斤");
	}


}
